{extend name="$adminPage"}

{block name="headStyle"}
<style type="text/css">
    .txt{
        color: #FF5722;
    }
</style>
{/block}

{block name="content"}
<p class="txt">设置页面head内的css代码</p>
<pre class="layui-code">{literal}{extend name="$adminPage"}{/literal}

{literal}{block name="headStyle"}{/literal}
{php}
    echo htmlspecialchars("<style type=\"text/css\">
    .txt{
        color: #FF5722;
    }
</style>");
{/php}

{literal}{/block}{/literal}

{literal}{block name="content"}{/literal}
{php}
    echo htmlspecialchars("<p class=\"txt\">设置页面head内的css代码</p>");
{/php}

{literal}{/block}{/literal}</pre>
{/block}